package com.huangpuweb.api.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class SysHpRoadConditionAllMapper implements RowMapper<SysHpRoadConditionAll> {
    @Override
    public SysHpRoadConditionAll mapRow(ResultSet rs, int rowNum) throws SQLException {
        SysHpRoadConditionAll lj = new SysHpRoadConditionAll();
        lj.setRoadId(rs.getString("roadId"));
        lj.setRoadLevel(rs.getInt("roadLevel"));
        lj.setNostopSpeed(rs.getDouble("nostopSpeed"));
        lj.setSpeed(rs.getDouble("speed"));
        lj.setRecordTime(rs.getString("recordTime"));
        lj.setUpdateTime(rs.getString("updateTime"));
        lj.setRoadName(rs.getString("roadName"));
        lj.setInterName(rs.getString("interName"));
        return lj;
    }
}
